<%@page contentType="text/html;charset=utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>购物车</title>
		<meta http-equiv=Content-Type content="text/html; charset=utf-8" />

		<link href="../css/tbsp.css" type="text/css" rel="stylesheet" />
		<SCRIPT src="../js/tbra-aio.js" type=text/javascript></SCRIPT>
		<link href="../css/global_nav.css" type=text/css rel=stylesheet />
		<style type=text/css media=screen />
		</STYLE>
		<!-- 引入外部 css 文件 -->
		<link rel="stylesheet" href="../css/gwap.css" type="text/css" />
		<!-- 引入外部 js 文件 -->
		<script language="JavaScript" src="../js/tarena.js"></script>
		<link href="../css/cart_v2.css" type="text/css" rel="stylesheet" />
		<meta content="MSHTML 6.00.2900.3603" name=GENERATOR />
	</HEAD>
	<BODY>


		<div align="center">

			<!--页头 开始-->


			<!--页头 结束-->

			<!-- Core Code...Start -->
			<DIV id=page>
				<DIV id=header>
					<DIV class=grid-c id=content>
						<tr>
							<td>
								<table width="100%" border="0">
									<h2 style="color: red">
										生成订单
									</h2>
								</table>
							</td>
						</tr>
						<tr>
							<DIV id=cart>
								<TABLE class=cart-table id=J_CartEnable cellSpacing=0
									cellPadding=0>
									<THEAD>
										<th class=s-chk>
											<label for=j_selectall>
												序号
											</label>
										</th>
										<th class=s-title>
											商品名称
										</th>
										<th class=s-point>
											市场价
											<a class=q id=j_pointtiptrigger title=? href="#"><span>?</span>
											</a>
										</th>
										<th class=s-price>
											当当价
										</th>
										<th class=s-agio>
											优惠
										</th>
										<th class=s-total>
											小计(元)
										</th>


									</THEAD>

									<!-- 开始迭代购物车里的数据 -->

							
									<s:iterator value="cart.cartItems" var="item" status="st">
										<s:if test="status == true ">
										<tbody>
											<tr class=shop>
												<td colSpan=8>
												</td>
											</tr>
											<tr class=uncod
												data-itemid="8c48b1fb33b8e7ba5226561114ee8c03"
												data-cartid="1192666788">
												<TD class=s-chk>
													<s:property value="#st.count" />
												</TD>
												<td class=s-title>
													<a title="${item.product.productName}" href="#"
														target=_blank> ${item.product.productName} </a>
												</td>
												<td class=s-point>
													<EM>￥${item.product.fixedPrice}</EM>
												</td>
												<td class=s-price>
													<EM>${item.product.dangPrice}</EM>
												</td>

												<td class=s-agio>
													无优惠
												</td>
												<td class=s-total>
													<EM>${item.product.dangPrice * item.number}</EM>
												</td>

											</tr>
										</tbody>
										</s:if>
									</s:iterator>

									<!-- 迭代结束 -->

									<tbody>
										<TFOOT>
											<tr>
												<td class=point-info colSpan=5></td>
												<td class=charge-info colSpan=3>
													<EM class=total id=J_Total>商品总价(不含运费)：${cart.dangPrice
														} <a href="addressform.action">订单确认</a> </EM>元

												</td>


											</tr>
										</TFOOT>
									</tbody>
								</TABLE>
							</DIV>
					</DIV>
				</DIV>
			</DIV>

			<!-- 被删除的 -->
			<s:if test="cart.cartItems.CartItem.status == false ">
				<DIV id=page>
					<DIV id=header>
						<DIV class=grid-c id=content>
							<tr>
								<td align="left">
									<h3>
										被你删除的商品
									</h3>
								</td>
							</tr>
							<tr>
								<DIV id=cart>
									<TABLE class=cart-table id=J_CartEnable cellSpacing=0
										cellPadding=0>
										<THEAD>
											<th class=s-chk>
												<label for=j_selectall>
													序号
												</label>
											</th>
											<th class=s-title>
												商品名称
											</th>
											<th class=s-point>
												市场价
												<a class=q id=j_pointtiptrigger title=? href="#"><span>?</span>
												</a>
											</th>
											<th class=s-price>
												当当价
											</th>

											<th class=s-del>
												操作
											</th>
											</tr>
										</THEAD>
										<!-- 开始迭代购物车里的数据 -->

										<s:iterator value="cart.cartItems" var="item" status="st">
											<tbody>
												<tr class=shop>
													<td colSpan=8>
													</td>
												</tr>
												<tr class=uncod
													data-itemid="8c48b1fb33b8e7ba5226561114ee8c03"
													data-cartid="1192666788">
													<TD class=s-chk>
														<s:property value="#st.count" />
													</TD>
													<td class=s-title>
														<a title="${item.product.productName}" href="#"
															target=_blank> <img
																src="../product/${item.product.productPic}" />
															${item.product.productName} </a>
													</td>
													<td class=s-point>
														<EM>￥${item.product.fixedPrice}</EM>
													</td>
													<td class=s-price>
														<EM>${item.product.dangPrice}</EM>
													</td>

													<td class=s-del>
														<a href="javascript:;"
															onclick="locaion='recovery.action?productId=${item.product.id}'">恢复</a>
													</td>
												</tr>
											</tbody>
										</s:iterator>
										<!-- 迭代结束 -->

									</TABLE>
								</DIV>
						</DIV>
					</DIV>
				</DIV>
			</s:if>
			<!-- 被删除的 -->
			<%@include file="../common/foot1.jsp"%>
	</body>
</html>



